package com.zpl.goods.controller;

import com.zpl.core.Result;
import com.zpl.goods.enums.Brand;
import com.zpl.goods.enums.Status;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangyuxin
 * @date 2020/9/28
 */
@RestController
@RequestMapping("/common")
public class CommonController {
    @GetMapping("/status")
    public Result getStatus(){
        return Result.success(Status.toJson());
    }
    @GetMapping("/brand")
    public Result getBrand(){
        return Result.success(Brand.toJson());
    }
}
